#ifndef SINSY_PITCH_MODEL_H_
#define SINSY_PITCH_MODEL_H_

#include <gsl/gsl_errno.h>
#include <gsl/gsl_spline.h>
#include <vector>

class PitchModel {
public:
  void addNote(float start, float length, float f0);
  void fix();
  float getF0atTime(float time);
  float getLength();

private:
  std::vector<double> time;
  std::vector<double> pitch;
  float startPos;
  float endPos;
  gsl_interp_accel *acc;
  gsl_spline *cspline;
};

#endif
